import BaseEnum from '@/core/utils/BaseEnum'
import BaseEnumValue from '@/core/utils/BaseEnumValue'

class ${model.className} extends BaseEnum<${model.codeClass}> {
	<#list model.fields as field>
	${field.key} = new BaseEnumValue<${model.codeClass}>(${field.code}, '${field.desc}')
	</#list>
	constructor() {
		super([
			<#list model.fields as field>
			'${field.key}',
			</#list>
		])
	}
}

const enumModel = new ${model.className}()

export default enumModel
